package site.jlopen.assets.shiro.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Date 2021/8/19
 **/
@Configuration
public class ShiroFilterRegisterConfig {

	@Bean
	public FilterRegistrationBean<ApiAuthenticationFilter> shiroLoginFilteRegistration(ApiAuthenticationFilter filter) {
		FilterRegistrationBean<ApiAuthenticationFilter> registration = new FilterRegistrationBean<ApiAuthenticationFilter>(
				filter);
		registration.setEnabled(false);
		return registration;
	}
}